x11: Avoid spurious focus events on grabs
authorBenjamin Otte <otte@redhat.com>
Mon, 19 Dec 2011 11:39:53 +0000 (12:39 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 19 Dec 2011 15:17:14 +0000 (16:17 +0100)
commitdb4a6040afd3d1cabbb306037e811f37d62e2e76
tree9c86d180df0709aa90893da2c84ef8cd0073388e
parent2ea328dfbc820c32a6f425805e632cd1aef45258
x11: Avoid spurious focus events on grabs

We want to avoid handling focus events for the private focus window,
otherwise the keyboard grab taken by for example buttons will cause a
spurious FOCUS_OUT/FOCUS_IN on the toplevel.

The code that did this seems to have been lost in the XI2 transition for
GTK3.

https://bugzilla.gnome.org/show_bug.cgi?id=657578
gdk/x11/gdkdevicemanager-core-x11.c
gdk/x11/gdkdevicemanager-xi2.c
gdk/x11/gdkdevicemanagerprivate-core.h